package com.zhiming.common.exception.pojo;

import lombok.Getter;

/**
 * 自定义异常结果类
 */
@Getter
public class ExceptionResult {
    private Integer status;
    private String message;

    public ExceptionResult(ZmException e){
        this.status = e.getStatus();
        this.message = e.getMessage();
    }


    public ExceptionResult(Integer status,String message){
        this.status = status;
        this.message = message;
    }

}
